/**
 * 用户页面 - 用户信息接口
 *
 * @url user
 * @url user?uid=233
 */

module.exports = function(req) {
    let uid = req.query.uid
    if (!uid) {
        return {
            code: 0,
            'user|8': [
                {
                    'uid|+1': 1,
                    name: '@name',
                    'age|20-30': 1,
                    email: '@email',
                    date: '@date'
                }
            ]
        }
    } else {
        return {
            code: 0,
            user: {
                uid: +uid,
                name: '@name',
                'age|20-30': 1,
                email: '@email',
                date: '@date'
            }
        }
    }
}
